import org.springframework.data.redis.core.RedisTemplate;

public class demo {

    public static void main(String[] args) {

        RedisTemplate template = new RedisTemplate();

        System.out.println(template.opsForValue().get("name"));


    }
}
